package com.koko.feign;

import com.koko.config.FeignClientConfig;
import com.koko.order.vo.UserAddGameByOrderVO;
import com.koko.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(name = "order-service", url = "http://localhost:8084", configuration = FeignClientConfig.class)
public interface OrderFeignService {
    @GetMapping("/order/gamesonorder/{orderId}")
    Result<List<UserAddGameByOrderVO>> getGameIdsOnOrderByOrderId(@PathVariable Long orderId);
}
